from django.conf.urls import url

from . import views

app_name = 'equipment'
urlpatterns = [
    url(r'^equipment-autocomplete/$', views.EquipmentAutocompleteView.as_view(), name='equipment-autocomplete'),
    url(r'^accessories-autocomplete/$', views.AccessoriesAutocompleteView.as_view(), name='accessories-autocomplete'),
    url(r'^powersuppliese-autocomplete/$', views.PowerSupplieseAutocompleteView.as_view(),
        name='powersuppliese-autocomplete'),
    url(r'^networkdevices-autocomplete/$', views.NetworkdevicesAutocompleteView.as_view(),
        name='networkdevices-autocomplete'),
    url(r'^seisentity-autocomplete/(?P<fk>\d+)?/', views.SeismologicalEquipmentEntityAutocomplete.as_view(),
        name='seisentity-autocomplete'),
    url(r'^list/add/(?P<station_id>\d+)/$', views.EquipmentListCreateView.as_view(), name='equipmentlist_add'),
    url(r'^list/edit/(?P<station_id>\d+)/$', views.EquipmentListUpdateView.as_view(), name='equipmentlist_edit'),
]
